package com.fz.service;

import com.fz.controller.dto.LoginDTO;
import com.fz.controller.request.BaseRequest;
import com.fz.controller.request.LoginRequest;
import com.fz.controller.request.PasswordRequest;
import com.fz.pojo.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {
    List<Admin> list();

    //分页
    PageInfo<Admin> page(BaseRequest baseRequest);

    //添加用户
    void addAdmin(Admin admin);

    //通过id查询用户
    Admin getById(Integer id);

    void update(Admin admin);

    void deleteById(Integer id);

    LoginDTO login(LoginRequest loginRequest);

    void updatePassword(PasswordRequest passwordRequest);
}
